package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Userinfo;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.query.UserQueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface UserinfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Userinfo record);

    Userinfo selectByPrimaryKey(Long id);

    List<Userinfo> selectAll();

    int updateByPrimaryKey(Userinfo record);

    int queryForCount(QueryObject qo);

    List<Userinfo> queryForList(QueryObject qo);

    void audit(Userinfo user);

    void deleteByStudentId(Long id);

    List<Userinfo> queryByStudentName(String studentName);
}